<template>
<div class="kg-head-he"></div>
<header class="kg-head reg-top">
	<div @click="$router.back()" class="dqxz"><i class="micon">&#xe61e;</i></div>
	<div class="search_box show-cansu">
		{{newsdetail.title}}
	</div>
</header>
<div class="bjcs">
<!---->
<div class="pg-show">
	<div class="page-h2">{{newsdetail.title}}</div>
	<div class="page-time">{{newsdetail.create_time}}<span>阅读：{{newsdetail.show_views}}</span></div>
	<div class="page-cen f_cb" v-html="newsdetail.content">
    
	</div>
</div>
</div>
</template>

<script>
import {detail} from '@/api/news/index'
export default {
  data(){
	return{
      isLoading: false,// 正在加载
      newsdetail: {},  
	}
  },
  created () {
    // 初始化页面
    this.init()
  },
  methods: {
	// 初始化页面
  init () {
    let newsid = this.$route.query.id
		detail({articleId:newsid}).then((res)=>{
			this.newsdetail = res.data.detail;
		})
    },
},
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.bjcs{background: #f3f0e9; min-height: 50vh;}
</style>
